import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

import myExample from "./src/plugins/vite-plugin-my-example.js"
import myPlugin from "./src/plugins/vite-plugin-myPlugin.js"

// https://vitejs.dev/config/
export default defineConfig({
  define: {
    //fix "path" module issue
    'process.platform': null,
    'process.version': null,
    GLOBAL_STRING: JSON.stringify('i am global var from vite.config.js define'),
    GLOBAL_VAR: {
      test: 'i am global var from vite.config.js define'
    }
  },
  plugins: [vue(),myPlugin()]
})
